<!-- 简历详情 -->
<template>
	<view class="container">
		<view class="c-module">
			<RecruitModule :info="orgInfo"></RecruitModule>
		</view>
		<!-- <view class="m-btn">
			<view class="btn-block">
				<u-button type="primary" text="发起邀约" @click="inviteModal = true"></u-button>
			</view>
		</view> -->
		<!-- <view class="c-module">
			<u-modal :show="inviteModal" title="发起邀约" content="您即将向该老师发起合作邀约,老师同意后将自动加入机构" showCancelButton
			 :confirmText="'邀约'" :cancelText="'取消'" 	@confirm="inviteModalConfirm" @cancel="inviteModal = false" ></u-modal>
		</view> -->
	</view>
</template>

<script>
	import RecruitModule from "@/pages/pages_mine/components/RecruitModule.vue"
	export default {
		name:"",
		components:{
			RecruitModule
		},
		data() {
			return {
				// 邀请模态框
				inviteModal:false,
				// 简历详情
				orgInfo:{}
			}
		},
		onLoad(query) {
			this.getRecruitmentOrgDetail(query.id)
		},
		methods: {
			// 发起邀请
			inviteModalConfirm(){
				this.inviteModal = false
				this.$http.inviteOrgTeacher({teacher_mobile:this.orgInfo.tel}).then(res=>{
					uni.$u.toast("已向该老师发起邀约")
				})
			},
			// 获取机构详情
			getRecruitmentOrgDetail(id){
				this.$http.getRecruitmentOrgDetail({id}).then(res=>{
					this.orgInfo = res
				})
			}
		}
	}
</script>

<style scoped lang="scss">
	.container{
		
	}
</style>
